<?php
namespace Leaps\Events;
use Leaps\Base\ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
    /**
     * 注册服务提供者
     *
     * @return void
     */
    public function register()
    {
        $this->app ['events'] = $this->app->share ( function ($app)
        {
            return new Dispatcher ( $app );
        } );
    }
}